package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class ItemBase{
	boolean[] modified=new boolean[10];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public ItemBase(){}
	public ItemBase(java.lang.Long itemId,java.lang.Long type,java.lang.Long fkId,java.lang.Long userId,java.lang.String title,java.util.Date postTime,java.lang.String description,java.util.Date frequentFocus,java.lang.Long mostClick,java.lang.String typeTag){
		setItemId(itemId);
		setType(type);
		setFkId(fkId);
		setUserId(userId);
		setTitle(title);
		setPostTime(postTime);
		setDescription(description);
		setFrequentFocus(frequentFocus);
		setMostClick(mostClick);
		setTypeTag(typeTag);
	}
	public void setItemId(java.lang.Long itemId){
		if(itemId!=null) {
			set("itemId",itemId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getItemId(){
		return (java.lang.Long)get("itemId");
	}
	public void setType(java.lang.Long type){
		if(type!=null) {
			set("type",type);
			this.modified[1] =true;
		}
	}
	public java.lang.Long getType(){
		return (java.lang.Long)get("type");
	}
	public void setFkId(java.lang.Long fkId){
		if(fkId!=null) {
			set("fkId",fkId);
			this.modified[2] =true;
		}
	}
	public java.lang.Long getFkId(){
		return (java.lang.Long)get("fkId");
	}
	public void setUserId(java.lang.Long userId){
		if(userId!=null) {
			set("userId",userId);
			this.modified[3] =true;
		}
	}
	public java.lang.Long getUserId(){
		return (java.lang.Long)get("userId");
	}
	public void setTitle(java.lang.String title){
		if(title!=null) {
			set("title",title);
			this.modified[4] =true;
		}
	}
	public java.lang.String getTitle(){
		return (java.lang.String)get("title");
	}
	public void setPostTime(java.util.Date postTime){
		if(postTime!=null) {
			set("postTime",postTime);
			this.modified[5] =true;
		}
	}
	public java.util.Date getPostTime(){
		return (java.util.Date)get("postTime");
	}
	public void setDescription(java.lang.String description){
		if(description!=null) {
			set("description",description);
			this.modified[6] =true;
		}
	}
	public java.lang.String getDescription(){
		return (java.lang.String)get("description");
	}
	public void setFrequentFocus(java.util.Date frequentFocus){
		if(frequentFocus!=null) {
			set("frequentFocus",frequentFocus);
			this.modified[7] =true;
		}
	}
	public java.util.Date getFrequentFocus(){
		return (java.util.Date)get("frequentFocus");
	}
	public void setMostClick(java.lang.Long mostClick){
		if(mostClick!=null) {
			set("mostClick",mostClick);
			this.modified[8] =true;
		}
	}
	public java.lang.Long getMostClick(){
		return (java.lang.Long)get("mostClick");
	}
	public void setTypeTag(java.lang.String typeTag){
		if(typeTag!=null) {
			set("typeTag",typeTag);
			this.modified[9] =true;
		}
	}
	public java.lang.String getTypeTag(){
		return (java.lang.String)get("typeTag");
	}
}
